def get_input():
    while True:
        try:
            num = int(input("请输入一个数字（0-99）："))
            if num > 99:
                print("输入数字过大，请重新输入。")
                continue
            return num
        except ValueError:
            print("输入不合法，请输入一个有效的整数。")


def print_table(num):
    for i in range(1, num + 1):
        for j in range(1, i + 1):
            result_str = f"{j}x{i}={i * j}"
            print(f"{result_str:<11}", end="\t")
        print()


if __name__ == '__main__':
    num = get_input()
    print_table(num=num)